<template>
    <div class="water-content">
        <div class="title">
            <h3>水质监测<span>Water quality testing</span></h3>
        </div>
        <div class="water-info">
            <div class="water-temp">
                <div>
                    <p>浊度：200 <span>NTU</span></p>
                    <span class="top"></span>
                    <span class="bottom"></span>
                </div>
                <div>
                    <p>水温：15<span>c&deg;</span></p>
                    <span class="top"></span>
                    <span class="bottom"></span>
                </div>
            </div>
            <div class="ph-content">
                <div class="ph">
                    <div>
                        <p>平均PH值</p>
                        <p>10</p>
                    </div>
                </div>
            </div>
        </div>
        <div class="air-content">
            <div class="air-title">
                <h3>空气监测</h3>
                <div class="air-quality">
                    <div class="icon"><font-awesome-icon class="icon-leaf" :icon="['fas', 'leaf']" /></div>
                    <div>
                        <p>空气质量</p>
                        <span>优</span>
                    </div>
                </div>
            </div>
            <div class="air-monitor">
                <div class="air-left">
                    <div>
                        <div class="img"><img src="@/static/images/water.png" /></div>
                        <div class="text">
                            <span>5</span>
                            <p>水质ph值</p>
                        </div>
                    </div>
                    <div>
                        <div class="img"><img src="@/static/images/wind.png" /></div>
                        <div class="text">
                            <span>4级</span>
                            <p>风力</p>
                        </div>
                    </div>
                </div>
                <div class="air-right">
                    <div>
                        <img src="@/static/images/air.png" />
                        <p>空气指数200</p>
                        <span>pm2.5</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="noise">
            <div class="noise-monitor">
                <p>噪音监测</p>
                <font-awesome-icon class="icon-leaf icon" :icon="['fas', 'volume-up']" />
            </div>
            <div class="beat">
                <ul>
                    <li class="short"></li>
                    <li class="moderate"></li>
                    <li class="long"></li>
                    <li class="moderate"></li>
                    <li class="short"></li>
                    <li class="moderate1"></li>
                    <li class="short1"></li>
                    <li class="short"></li>
                    <li class="short"></li>
                    <li class="moderate"></li>
                    <li class="long"></li>
                    <li class="moderate"></li>
                    <li class="short"></li>
                    <li class="moderate1"></li>
                    <li class="short1"></li>
                    <li class="short"></li>
                    <li class="short"></li>
                    <li class="moderate"></li>
                    <li class="long"></li>
                    <li class="moderate"></li>
                    <li class="short"></li>
                    <li class="moderate1"></li>
                    <li class="short1"></li>
                    <li class="short"></li>
                </ul>
                <p>噪音分贝：0</p>
            </div>
        </div>
    </div>
</template>

<script>
export default {}
</script>

<style lang="less" scoped>
@import '../../../assets/less/school.less';
.water-content {
    width: 350px;
    height: 100%;
    flex: 1;
    padding-right: 15px;
    margin-top: 10px;
    .water-info {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 10px;
        padding: 20px 0;
        position: relative;
        .water-temp {
            div {
                width: 180px;
                position: relative;
                margin-bottom: 5px;
                p {
                    text-indent: 2em;
                    color: rgb(0, 255, 255);
                    font-size: 16px;
                    span {
                        color: #fff;
                        margin-left: 5px;
                    }
                }
                .top {
                    display: block;
                    width: 80%;
                    height: 10px;
                    border-radius: 10px;
                    background-image: linear-gradient(to right, rgb(104, 81, 159), rgb(127, 245, 250));
                }
                .bottom {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    height: 10px;
                    width: 100%;
                    background: #ddd;
                    opacity: 0.5;
                    border-radius: 10px;
                    z-index: -1;
                }
            }
        }
        .ph-content {
            width: 120px;
            height: 120px;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            .ph {
                width: 120px;
                height: 80px;
                border-radius: 10px 10px 55px 55px;
                position: relative;
                // top: 10px;
                background-image: linear-gradient(to top, rgb(104, 81, 159), rgb(127, 245, 250));
                div {
                    position: absolute;
                    bottom: 10px;
                    left: 10px;
                    width: 100px;
                    height: 100px;
                    color: #fff;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    flex-direction: column;
                    border-radius: 50%;
                    background-image: radial-gradient(rgb(7, 9, 13), rgb(135, 168, 252));
                    border: 7px solid rgb(55, 79, 126);
                    p {
                        font-size: 16px;
                        margin: 5px 0;
                        font-weight: 600;
                    }
                }
            }
        }
    }
    .air-content {
        .air-title {
            width: 100%;
            margin-top: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border: 1px solid #fff;
            background-image: linear-gradient(to right, #68519f, #83c1e1);
            h3 {
                color: #fff;
                font-size: 16px;
                margin-left: 15px;
            }
            .air-quality {
                display: flex;
                align-items: center;
                .icon {
                    padding: 5px;
                    margin-right: 10px;
                    color: #fff;
                    font-size: 20px;
                    border: 1px solid #fff;
                    border-radius: 5px;
                }
                div {
                    display: flex;
                    flex-direction: column;
                    margin-right: 10px;
                    p {
                        color: #fff;
                        font-size: 12px;
                    }
                    span {
                        color: rgb(0, 255, 255);
                        font-weight: 700;
                        font-size: 16px;
                    }
                }
            }
        }
        .air-monitor {
            height: 160px;
            margin-top: 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            .air-left {
                width: 50%;
                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                div {
                    display: flex;
                    align-items: center;
                    .img {
                        height: 70px;
                        padding: 10px 15px;
                        border: 2px solid #999;
                        border-radius: 6px;
                        background: #ddd;
                        margin-right: 15px;
                        img {
                            // width: 100%;
                            height: 100%;
                        }
                    }
                    .text {
                        display: flex;
                        flex-direction: column;
                        align-items: flex-start;
                        span {
                            color: rgb(0, 255, 255);
                            font-weight: 600;
                            font-size: 20px;
                        }
                        p {
                            font-size: 12px;
                            color: #fff;
                        }
                    }
                }
            }
            .air-right {
                width: 40%;
                height: 100%;
                border: 2px solid #999;
                border-radius: 5px;
                background: #ddd;
                display: flex;
                justify-content: center;
                align-items: center;
                margin-right: 20px;
                div {
                    width: 100%;
                    height: 100%;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    padding: 10px;
                    position: relative;
                    img {
                        width: 100%;
                        height: 100%;
                        padding: 0 5px;
                    }
                    p {
                        font-size: 16px;
                        font-weight: 520;
                        color: #fff;
                        margin-top: 5px;
                    }
                    span {
                        width: 100%;
                        text-align: center;
                        position: absolute;
                        top: 55%;
                        color: #fff;
                    }
                }
            }
        }
    }
    .noise {
        margin-top: 50px;
        .noise-monitor {
            width: 60%;
            padding: 5px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-radius: 3px;
            background: rgba(154, 153, 180, 0.6);
            p {
                margin-left: 10px;
                color: #fff;
                font-size: 16px;
            }
            .icon {
                margin-right: 10px;
                color: rgb(133, 199, 228);
            }
        }
        .beat {
            width: 100%;
            margin-top: 70px;
            display: flex;
            align-items: center;
            ul {
                width: 65%;
                height: 70px;
                display: flex;
                justify-content: space-evenly;
                align-items: center;
                margin-right: 10px;
                li {
                    display: block;
                    width: 5px;
                    height: 20px;
                    border-radius: 10px;
                    background: #ddd;
                }
                .short {
                    height: 20px;
                    background-image: linear-gradient(to right, rgb(104, 81, 159) 10%, rgb(96, 196, 226));
                }
                .moderate {
                    height: 40px;
                    background-image: linear-gradient(to right, rgb(104, 81, 159) 10%, rgb(96, 196, 226));
                }
                .long {
                    height: 70px;
                    background-image: linear-gradient(to right, rgb(104, 81, 159) 10%, rgb(96, 196, 226));
                }
                .moderate1 {
                    height: 30px;
                    background-image: linear-gradient(to right, rgb(104, 81, 159) 10%, rgb(96, 196, 226));
                }
                .short1 {
                    height: 25px;
                    background-image: linear-gradient(to right, rgb(104, 81, 159) 10%, rgb(96, 196, 226));
                }
            }
            p {
                height: 30px;
                line-height: 30px;
                flex: 1;
                display: block;
                text-align: center;
                color: #fff;
                font-size: 14px;
                background: rgb(117, 187, 224);
                border-radius: 5px;
            }
        }
    }
}
</style>